package com.google.zxing.client.android;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.google.zxing.client.android.R;
import com.google.zxing.client.android.result.ContentQuestions;
import com.google.zxing.client.android.result.Question;

public class GetResultText extends Activity{

	private WebView webURLContent;
	int isValid = 0;
	private String strUrl;
	private Button btnBack;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.get_result_text);
		
		webURLContent = (WebView)findViewById(R.id.webShowURLContent);
		
		strUrl = getIntent().getExtras().getString("URL");
		webURLContent.getSettings().setJavaScriptEnabled(true);
		webURLContent.loadUrl(strUrl);
		
		btnBack = (Button)findViewById(R.id.btnBack);
		btnBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(GetResultText.this, CaptureActivity.class));
			}
		});
	}
}
